<?php
/**
 * Created by JetBrains PhpStorm.
 * User: zhouyang
 * Date: 13-9-15
 * Time: 下午4:31
 * To change this template use File | Settings | File Templates.
 */
class NewsModel extends Model{
    //根据new_id 获取new 信息
    public function get($new_id){
        return $this->dbreader()->get($new_id);
    }

    //获取cate 列表<带分页>
    public function getNewListByCategoryId($curr_page,$per_page,$filter = array()){
        return $this->dbreader()->getNewListByCategoryId($curr_page,$per_page,$filter);
    }

    //获取首页推荐的最新3条数据
    public function getRecommendIndexList(){
        return $this->dbreader()->getRecommendIndexList();
    }

    //批量获取资讯信息
    public function mulitGetNewInfo($new_ids){
        $str_new_ids = implode(',',$new_ids);
        return $this->dbreader()->mulitGetNewInfo($str_new_ids);
    }
}